package com.china08.yxyapi.entity.mg.attendance;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 每天的打卡记录, 每个教师只要打卡就进行记录
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.attendance.attendance")
public class YxyTeaAttendance extends MongoBaseEntityNoId {

    @Id
    private String id;

    @Field(value = "teacher_id")
    private String teacherId;

    @Field(value = "teacher_name")
    private String teacherName;

    @Field(value = "school_id")
    private String schoolId;

    @Field(value = "school_name")
    private String schoolName;

    /**
     * 签到日期, 存储20170412格式
     */
    @Field(value = "day_of_date")
    private Integer dayOfDate;

    /**
     * 签到时间
     */
    @Field(value = "sign_time")
    private Date signTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public Integer getDayOfDate() {
        return dayOfDate;
    }

    public void setDayOfDate(Integer dayOfDate) {
        this.dayOfDate = dayOfDate;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

}
